﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D61 RID: 3425
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PromoteAvatarCsReq : IMessage<PromoteAvatarCsReq>, IMessage, IEquatable<PromoteAvatarCsReq>, IDeepCloneable<PromoteAvatarCsReq>, IBufferMessage
	{
		// Token: 0x17002B73 RID: 11123
		// (get) Token: 0x060099AF RID: 39343 RVA: 0x0019A8E5 File Offset: 0x00198AE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PromoteAvatarCsReq> Parser
		{
			get
			{
				return PromoteAvatarCsReq._parser;
			}
		}

		// Token: 0x17002B74 RID: 11124
		// (get) Token: 0x060099B0 RID: 39344 RVA: 0x0019A8EC File Offset: 0x00198AEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PromoteAvatarCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002B75 RID: 11125
		// (get) Token: 0x060099B1 RID: 39345 RVA: 0x0019A8FE File Offset: 0x00198AFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PromoteAvatarCsReq.Descriptor;
			}
		}

		// Token: 0x060099B2 RID: 39346 RVA: 0x0019A905 File Offset: 0x00198B05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteAvatarCsReq()
		{
		}

		// Token: 0x060099B3 RID: 39347 RVA: 0x0019A918 File Offset: 0x00198B18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteAvatarCsReq(PromoteAvatarCsReq other) : this()
		{
			this.baseAvatarId_ = other.baseAvatarId_;
			this.itemList_ = other.itemList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060099B4 RID: 39348 RVA: 0x0019A94E File Offset: 0x00198B4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteAvatarCsReq Clone()
		{
			return new PromoteAvatarCsReq(this);
		}

		// Token: 0x17002B76 RID: 11126
		// (get) Token: 0x060099B5 RID: 39349 RVA: 0x0019A956 File Offset: 0x00198B56
		// (set) Token: 0x060099B6 RID: 39350 RVA: 0x0019A95E File Offset: 0x00198B5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseAvatarId
		{
			get
			{
				return this.baseAvatarId_;
			}
			set
			{
				this.baseAvatarId_ = value;
			}
		}

		// Token: 0x17002B77 RID: 11127
		// (get) Token: 0x060099B7 RID: 39351 RVA: 0x0019A967 File Offset: 0x00198B67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ItemCost> ItemList
		{
			get
			{
				return this.itemList_;
			}
		}

		// Token: 0x060099B8 RID: 39352 RVA: 0x0019A96F File Offset: 0x00198B6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PromoteAvatarCsReq);
		}

		// Token: 0x060099B9 RID: 39353 RVA: 0x0019A980 File Offset: 0x00198B80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PromoteAvatarCsReq other)
		{
			return other != null && (other == this || (this.BaseAvatarId == other.BaseAvatarId && this.itemList_.Equals(other.itemList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060099BA RID: 39354 RVA: 0x0019A9D0 File Offset: 0x00198BD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BaseAvatarId != 0U)
			{
				num ^= this.BaseAvatarId.GetHashCode();
			}
			num ^= this.itemList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060099BB RID: 39355 RVA: 0x0019AA1D File Offset: 0x00198C1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060099BC RID: 39356 RVA: 0x0019AA25 File Offset: 0x00198C25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060099BD RID: 39357 RVA: 0x0019AA30 File Offset: 0x00198C30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.itemList_.WriteTo(ref output, PromoteAvatarCsReq._repeated_itemList_codec);
			if (this.BaseAvatarId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.BaseAvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060099BE RID: 39358 RVA: 0x0019AA80 File Offset: 0x00198C80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BaseAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseAvatarId);
			}
			num += this.itemList_.CalculateSize(PromoteAvatarCsReq._repeated_itemList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060099BF RID: 39359 RVA: 0x0019AAD4 File Offset: 0x00198CD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PromoteAvatarCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BaseAvatarId != 0U)
			{
				this.BaseAvatarId = other.BaseAvatarId;
			}
			this.itemList_.Add(other.itemList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060099C0 RID: 39360 RVA: 0x0019AB21 File Offset: 0x00198D21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060099C1 RID: 39361 RVA: 0x0019AB2C File Offset: 0x00198D2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.BaseAvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.itemList_.AddEntriesFrom(ref input, PromoteAvatarCsReq._repeated_itemList_codec);
				}
			}
		}

		// Token: 0x04003B30 RID: 15152
		private static readonly MessageParser<PromoteAvatarCsReq> _parser = new MessageParser<PromoteAvatarCsReq>(() => new PromoteAvatarCsReq());

		// Token: 0x04003B31 RID: 15153
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003B32 RID: 15154
		public const int BaseAvatarIdFieldNumber = 5;

		// Token: 0x04003B33 RID: 15155
		private uint baseAvatarId_;

		// Token: 0x04003B34 RID: 15156
		public const int ItemListFieldNumber = 3;

		// Token: 0x04003B35 RID: 15157
		private static readonly FieldCodec<ItemCost> _repeated_itemList_codec = FieldCodec.ForMessage<ItemCost>(26U, ItemCost.Parser);

		// Token: 0x04003B36 RID: 15158
		private readonly RepeatedField<ItemCost> itemList_ = new RepeatedField<ItemCost>();
	}
}
